package com.zdb.demo.design.pattern.structural.bridge.demo2;

public abstract class AbstractMessage {

    protected MessageImplementor messageImplementor;

    public AbstractMessage(MessageImplementor messageImplementor) {
        this.messageImplementor = messageImplementor;
    }

    public void sendMessage(String message, String toUser) {
        this.messageImplementor.send(message, toUser);
    }
}
